<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'finacne_report.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link href="css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=path%>/script/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="script/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="script/common.js"></script>
	<script type="text/javascript">
		function goPage(currentPage){
				var params = {
					"month":$("#month").val(),
					"currentPage":currentPage
				};
			
				$("#detail").load("main/report/finance_detail",params)
			}
			
		function query(){
			var month = $("#month").val();
			if(month != ""){
				var params = {"month":month};
				$("#main").load("main/report/finance_main",params);
				goPage(1);
			}
		}
	</script>
  </head>
  
  <body>
   	<div id="report">
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	   		<tr >
	   			<td class="title1">您的位置：财务收支－－月度收支登记表</td>
	   		</tr>
	   	</table>
	   	<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="30px" class="toolbar">&nbsp;</td>
				<td nowrap class="toolbar">&nbsp;</td>
			</tr>
		</table>
	  </div>
	<div class="queryDiv">
	请选择月份：<input class="Wdate" type="text" id="month" onFocus="WdatePicker({dateFmt:'yyyy-MM',isShowClear:true,readOnly:true})"/>
			<input type="button" value="查询" onclick="query()"/>
	</div>
			
	<div id="main"></div>
	<div id="detail"></div>

  </body>
</html>
